Total Complexity | 1 |
Total Lines | 10 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | import {IObserverAdapter} from '@enbock/state-value-observer/Observer'; |
||
2 | |||
3 | export default class MenuOpenStateAdapter implements IObserverAdapter<boolean> { |
||
4 | private currentState: boolean; |
||
5 | |||
6 | constructor() { |
||
7 | 2 | this.currentState = false; |
|
8 | } |
||
9 | |||
10 | onChange(newValue: boolean): void { |
||
11 | 1 | this.currentState = newValue; |
|
12 | } |
||
14 |